import request from '@/utils/request'


export function loginApi (params) {
  return request({
    url: '/api/user/login',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
export function dictionaryListApi (params) {
  return request({
    url: '/api/dictionary/list',
    method: 'GET',
    params
  })
}

export function roleInfo (params) {
  return request({
    url: '/api/role/info',
    method: 'GET',
    params
  })
}

export function rolePermission (params) {
  return request({
    url: '/api/role/permission',
    method: 'GET',
    params
  })
}

export function uploadApi (params) {
  return request({
    url: '/api/ftpUplload/upload',
    method: 'POST',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: params
  })
}

export function listApi (params) {
  return request({
    url: '/api/user/userList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}